package view;

import javax.swing.ButtonGroup;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.BoxLayout;

public class V1x2 extends JPanel {

	private static final long serialVersionUID = 1L;
	private JRadioButton r1 = null;
	private JRadioButton rX = null;
	private JRadioButton r2 = null;
    ButtonGroup groupButtons = null;  //  @jve:decl-index=0:

	protected ButtonGroup getGroupButtons() {
		if (groupButtons == null)
			groupButtons = new ButtonGroup(); 
		return groupButtons;
	}

	/**
	 * This is the default constructor
	 */
	public V1x2() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		
		getGroupButtons().add(getR1());
		getGroupButtons().add(getRX());
		getGroupButtons().add(getR2());
		
		getR1().setToolTipText("1");
		getRX().setToolTipText("X");
		getR2().setToolTipText("2");
		
		
		add(getR1());
		add(getRX());
		add(getR2());
		
		//setSize(62,20);
		
//		this.setSize(getR1().getWidth()*3, getR1().getHeight()+10);
	}

	/**
	 * This method initializes r1	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getR1() {
		if (r1 == null) {
			r1 = new JRadioButton();
		}
		return r1;
	}

	/**
	 * This method initializes rX	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getRX() {
		if (rX == null) {
			rX = new JRadioButton();
		}
		return rX;
	}

	/**
	 * This method initializes r2	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getR2() {
		if (r2 == null) {
			r2 = new JRadioButton();
		}
		return r2;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
